Skip to content

Add groq AI mode provider defaults and docs#2942

Merged
sawka merged 2 commits intomainfrom
copilot/add-groq-provider
Feb 26, 2026
Merged

Add groq AI mode provider defaults and docs#2942
sawka merged 2 commits intomainfrom
copilot/add-groq-provider

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

This change adds first-class groq provider support to Wave AI mode resolution and documents it in the Wave AI modes guide. Users can now configure Groq modes via ai:provider with provider defaults applied automatically.

  • Provider support in backend config resolution

    • Added groq as a recognized AI provider constant.
    • Added Groq provider defaults in mode resolution:
      • ai:apitype: openai-chat
      • ai:endpoint: https://api.groq.com/openai/v1/chat/completions
      • ai:apitokensecretname: GROQ_KEY
  • Schema/config surface update

    • Extended AIModeConfigType provider enum to include groq, so ai:provider: "groq" is valid in Wave AI config.
  • Documentation updates (waveai-modes.mdx)

    • Added groq to supported providers.
    • Added a Groq-specific configuration example and default behavior notes.
    • Updated provider reference and capability guidance to include Groq.
  • Focused coverage

    • Added a targeted unit test for Groq provider default application in applyProviderDefaults.
{
  "groq-kimi-k2": {
    "display:name": "Groq - Kimi K2",
    "ai:provider": "groq",
    "ai:model": "moonshotai/kimi-k2-instruct"
  }
}

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new provider for groq Add groq AI mode provider defaults and docs Feb 26, 2026
@sawka sawka marked this pull request as ready for review February 26, 2026 06:48
@kilo-code-bot
Copy link
Contributor

kilo-code-bot bot commented Feb 26, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • docs/docs/waveai-modes.mdx - Documentation updated with Groq provider
  • pkg/aiusechat/uctypes/uctypes.go - Added Groq provider constant
  • pkg/aiusechat/usechat-mode.go - Added Groq endpoint, secret name, and provider defaults
  • pkg/aiusechat/usechat_mode_test.go - Added test for Groq provider defaults
  • pkg/wconfig/settingsconfig.go - Updated JSON schema enum to include groq

Review Notes

This PR adds support for the Groq AI provider following the established pattern for OpenAI-compatible providers (OpenRouter, NanoGPT). The implementation is:

Consistent - Follows the same pattern as existing providers
Complete - All necessary files updated (constants, defaults, schema, docs, tests)
Well-tested - Includes unit test for provider defaults
Well-documented - Comprehensive documentation with examples

The Groq provider correctly:

  • Sets ai:apitype to openai-chat
  • Sets ai:endpoint to https://api.groq.com/openai/v1/chat/completions
  • Sets ai:apitokensecretname to GROQ_KEY
  • Requires manual capability specification (consistent with OpenRouter/NanoGPT)

No issues found.

@sawka sawka merged commit f1e06c7 into main Feb 26, 2026
8 checks passed
@sawka sawka deleted the copilot/add-groq-provider branch February 26, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants